package me.aip.mov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author aip9105
 * @since 2022-02-12
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@TableName("c_chat_msg")
public class ChatMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id; /**

     * 发送者id
     */
    private String fromUserid;

    /**
     * 接收者id
     */
    private String toUserid;

    /**
     * 发送内容
     */
    private String content;

    /**
     * 发送时间
     */
    private Long time;

    /**
     * 消息类型
     */
    private String type;
    /**
     *  1 领取 2领取失败 3 成功  4退回
     */
    private Integer status;
    /**
     * 是否自動回復 1是
     */
    private Integer auto;

    /**
     * 是否自動回復 1是
     */
    private Integer unread;

    @TableField(exist = false)
    private Integer unReadCount;

    @TableField(exist = false)
    private String avatar;


    @TableField(exist = false)
    private String nickName;


}
